package org.datacoder.geocoding.jurisdiction

/**
 * A county (or parish in Louisiana, or census area
 * in Alaska).  Belongs to a state.  Has many voting
 * districts, not stored here for the sake of
 * efficiency.
 */
class County extends Jurisdiction{

    State state

    static belongsTo = [state: State]

    public static String retrieveShortName(){
        return "County"
    }
    public String toString(){
        com.vividsolutions.jts.geom.Point point = getMultiPolygon().getCentroid()
        return "County--Name: ${name}; Long Name: ${longName}; Lat/Long: (${point.getY()}, ${point.getX()})"
    }

}

